<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>LT8900 Arduino Library: LT8900 Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">LT8900 Arduino Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_l_t8900-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">LT8900 Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a602698f020d6a88efe40f18e95075be3"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_t8900.html#a602698f020d6a88efe40f18e95075be3">DataRate</a> { <b>LT8900_1MBPS</b>, 
<a class="el" href="class_l_t8900.html#a602698f020d6a88efe40f18e95075be3a33a36b91bfd5c28db9b2f4d0b0fdeab6">LT8910_250KBPS</a>, 
<a class="el" href="class_l_t8900.html#a602698f020d6a88efe40f18e95075be3ac9e6a97f0afa8a2a926a4f673ab98114">LT8910_125KBPS</a>, 
<a class="el" href="class_l_t8900.html#a602698f020d6a88efe40f18e95075be3a047a65591fa767ad81224f533a6c312a">LT8910_62KBPS</a>
 }<tr class="separator:a602698f020d6a88efe40f18e95075be3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aab06a130ce44d0fd83702714ab140cb0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_t8900.html#aab06a130ce44d0fd83702714ab140cb0">LT8900</a> (const uint8_t cs, const uint8_t pkt, const uint8_t rst)</td></tr>
<tr class="separator:aab06a130ce44d0fd83702714ab140cb0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af607e1b6a51f1039a4a8820a220ff219"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_t8900.html#af607e1b6a51f1039a4a8820a220ff219">begin</a> ()</td></tr>
<tr class="separator:af607e1b6a51f1039a4a8820a220ff219"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a945befd9169af7c40328707dd86f4b04"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_t8900.html#a945befd9169af7c40328707dd86f4b04">setChannel</a> (uint8_t channel)</td></tr>
<tr class="separator:a945befd9169af7c40328707dd86f4b04"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12f04bf37d5748f8d7f01e1b4f2bf2a5"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_t8900.html#a12f04bf37d5748f8d7f01e1b4f2bf2a5">getChannel</a> ()</td></tr>
<tr class="separator:a12f04bf37d5748f8d7f01e1b4f2bf2a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62229382691c2ea00acae3284c1f5d7d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_t8900.html#a62229382691c2ea00acae3284c1f5d7d">setCurrentControl</a> (uint8_t power, uint8_t gain)</td></tr>
<tr class="separator:a62229382691c2ea00acae3284c1f5d7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3dbc395cb3253332c0e97d057af9c7d8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_t8900.html#a3dbc395cb3253332c0e97d057af9c7d8">setDataRate</a> (<a class="el" href="class_l_t8900.html#a602698f020d6a88efe40f18e95075be3">DataRate</a> rate)</td></tr>
<tr class="separator:a3dbc395cb3253332c0e97d057af9c7d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5affab40a364253e99148aba8952ec73"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_l_t8900.html#a602698f020d6a88efe40f18e95075be3">DataRate</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_t8900.html#a5affab40a364253e99148aba8952ec73">getDataRate</a> ()</td></tr>
<tr class="separator:a5affab40a364253e99148aba8952ec73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7f1e549dbf241ebbc6aaae83be2c9d4"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_t8900.html#aa7f1e549dbf241ebbc6aaae83be2c9d4">readRegister</a> (uint8_t reg)</td></tr>
<tr class="separator:aa7f1e549dbf241ebbc6aaae83be2c9d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abcd27a849444a5854d78ae4242676d4b"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_t8900.html#abcd27a849444a5854d78ae4242676d4b">writeRegister</a> (uint8_t reg, uint16_t data)</td></tr>
<tr class="separator:abcd27a849444a5854d78ae4242676d4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a601eb681ebcbe5bbcd378d4448beeca1"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_t8900.html#a601eb681ebcbe5bbcd378d4448beeca1">writeRegister2</a> (uint8_t reg, uint8_t high, uint8_t low)</td></tr>
<tr class="separator:a601eb681ebcbe5bbcd378d4448beeca1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d8568bbc3acdf8fe6e8f208558647d2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_t8900.html#a2d8568bbc3acdf8fe6e8f208558647d2">sleep</a> ()</td></tr>
<tr class="separator:a2d8568bbc3acdf8fe6e8f208558647d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80f288ff48a05175de0c25021b9ed623"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_t8900.html#a80f288ff48a05175de0c25021b9ed623">whatsUp</a> (Stream &amp;stream)</td></tr>
<tr class="separator:a80f288ff48a05175de0c25021b9ed623"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a628b08e73e27d95b37125dbf6b25dadc"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_t8900.html#a628b08e73e27d95b37125dbf6b25dadc">available</a> ()</td></tr>
<tr class="separator:a628b08e73e27d95b37125dbf6b25dadc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3dc286d32d4894e1fe367f4b1e40c5ae"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_t8900.html#a3dc286d32d4894e1fe367f4b1e40c5ae">getIs8910</a> ()</td></tr>
<tr class="separator:a3dc286d32d4894e1fe367f4b1e40c5ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa72b08b3ac271ed18a660004a460a688"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_t8900.html#aa72b08b3ac271ed18a660004a460a688">read</a> (uint8_t *buffer, size_t maxBuffer)</td></tr>
<tr class="separator:aa72b08b3ac271ed18a660004a460a688"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6152869b35b9bc89e75cd7b0556f49a9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_t8900.html#a6152869b35b9bc89e75cd7b0556f49a9">startListening</a> ()</td></tr>
<tr class="separator:a6152869b35b9bc89e75cd7b0556f49a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52773d4d623382ab17312617d73c09e6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_t8900.html#a52773d4d623382ab17312617d73c09e6">setClock</a> (uint8_t clock)</td></tr>
<tr class="separator:a52773d4d623382ab17312617d73c09e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2231aaa6fdc220f405286f0f6b169988"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_t8900.html#a2231aaa6fdc220f405286f0f6b169988">sendPacket</a> (uint8_t *data, size_t packetSize)</td></tr>
<tr class="separator:a2231aaa6fdc220f405286f0f6b169988"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a5b1d04300c17e7f3bb7f881654a274"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_t8900.html#a2a5b1d04300c17e7f3bb7f881654a274">setSyncWord</a> (uint64_t syncWord)</td></tr>
<tr class="separator:a2a5b1d04300c17e7f3bb7f881654a274"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa816fa6a5f3280e05c5cdf390ffea0a9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_t8900.html#aa816fa6a5f3280e05c5cdf390ffea0a9">setSyncWordLength</a> (uint8_t length)</td></tr>
<tr class="separator:aa816fa6a5f3280e05c5cdf390ffea0a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e8e1ad5bd96aedf8264cf9b8e40dd7f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_t8900.html#a1e8e1ad5bd96aedf8264cf9b8e40dd7f">scanRSSI</a> (uint16_t *buffer, uint8_t start_channel, uint8_t num_channels)</td></tr>
<tr class="separator:a1e8e1ad5bd96aedf8264cf9b8e40dd7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5eceda7c4393a253e2a406c3e2ac982e"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_t8900.html#a5eceda7c4393a253e2a406c3e2ac982e">getRSSI</a> ()</td></tr>
<tr class="separator:a5eceda7c4393a253e2a406c3e2ac982e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Enumeration Documentation</h2>
<a class="anchor" id="a602698f020d6a88efe40f18e95075be3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_l_t8900.html#a602698f020d6a88efe40f18e95075be3">LT8900::DataRate</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Data Data While the <a class="el" href="class_l_t8900.html">LT8900</a> only has support for 1MPBS speed, the LT8910 offers different speeds. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="class_l_t8900.html#a3dc286d32d4894e1fe367f4b1e40c5ae">getIs8910</a> </dd></dl>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="a602698f020d6a88efe40f18e95075be3a33a36b91bfd5c28db9b2f4d0b0fdeab6"></a>LT8910_250KBPS&#160;</td><td class="fielddoc">
<p>default transmit rate </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a602698f020d6a88efe40f18e95075be3ac9e6a97f0afa8a2a926a4f673ab98114"></a>LT8910_125KBPS&#160;</td><td class="fielddoc">
<p>250 Kpbs, only on lt8910 </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a602698f020d6a88efe40f18e95075be3a047a65591fa767ad81224f533a6c312a"></a>LT8910_62KBPS&#160;</td><td class="fielddoc">
<p>125 Kbps, only on lt8910 62 Kbps, only on lt8910 </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aab06a130ce44d0fd83702714ab140cb0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LT8900::LT8900 </td>
          <td>(</td>
          <td class="paramtype">const uint8_t&#160;</td>
          <td class="paramname"><em>cs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint8_t&#160;</td>
          <td class="paramname"><em>pkt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint8_t&#160;</td>
          <td class="paramname"><em>rst</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Construct a new instance </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">cs</td><td>Chip Select, this is the SLAVE SELECT pin. Please note that it is a different location than the NRF24L01+ SS pin. </td></tr>
    <tr><td class="paramname">pkt</td><td>PKT_flag input signal pin. Comparable to the NRF24L01+ IRQ pin. </td></tr>
    <tr><td class="paramname">rst</td><td>RESET pin. Use 0 to disable. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a628b08e73e27d95b37125dbf6b25dadc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool LT8900::available </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Signals a packet ready in the FIFO queue </p>

</div>
</div>
<a class="anchor" id="af607e1b6a51f1039a4a8820a220ff219"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LT8900::begin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Configures the module for initial use </p>

</div>
</div>
<a class="anchor" id="a12f04bf37d5748f8d7f01e1b4f2bf2a5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t LT8900::getChannel </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Retrieve the current channel </p>

</div>
</div>
<a class="anchor" id="a5affab40a364253e99148aba8952ec73"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_l_t8900.html#a602698f020d6a88efe40f18e95075be3">LT8900::DataRate</a> LT8900::getDataRate </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the data rate </p><dl class="section return"><dt>Returns</dt><dd>the active data rate. </dd></dl>

</div>
</div>
<a class="anchor" id="a3dc286d32d4894e1fe367f4b1e40c5ae"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool LT8900::getIs8910 </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Checks the module type The LT8910 has a few extra features one of it being the extended options for data rate. </p><dl class="section return"><dt>Returns</dt><dd>false for a regular <a class="el" href="class_l_t8900.html">LT8900</a> and true for a LT8910 </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_l_t8900.html#a3dbc395cb3253332c0e97d057af9c7d8">setDataRate</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a5eceda7c4393a253e2a406c3e2ac982e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t LT8900::getRSSI </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>retrieve the analog signal strength for the current channel </p>

</div>
</div>
<a class="anchor" id="aa72b08b3ac271ed18a660004a460a688"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int LT8900::read </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>maxBuffer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Read a packet into the buffer </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">buffer</td><td>a pointer to a buffer large enough to hold the packet </td></tr>
    <tr><td class="paramname">maxBuffer</td><td>the maximum size of the buffer. Any bytes left over in the buffer will be dropped. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the size of the packet that was read, -1 for CRC error </dd></dl>

</div>
</div>
<a class="anchor" id="aa7f1e549dbf241ebbc6aaae83be2c9d4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t LT8900::readRegister </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>reg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Read the value of a register </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">reg</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a1e8e1ad5bd96aedf8264cf9b8e40dd7f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LT8900::scanRSSI </td>
          <td>(</td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>start_channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>num_channels</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Scan the signal strength for one or more channels </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">buffer</td><td>points to a buffer to store the signal strengths, at least num_channels </td></tr>
    <tr><td class="paramname">start_channel</td><td>starting channel to scan, where Frequency = 2402 + channel </td></tr>
    <tr><td class="paramname">num_channels</td><td>number of channels to scan in this batch, for example scanning 4 channels with start 2480 will scan 2480, 2481, 2482, 2483 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a2231aaa6fdc220f405286f0f6b169988"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool LT8900::sendPacket </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>packetSize</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sends a packet This call blocks until the packet was sent and the Tx Buffer has been completed </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td></td></tr>
    <tr><td class="paramname">packetSize</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true when the packet was sent, or false when the packetSize was invalid. </dd></dl>

</div>
</div>
<a class="anchor" id="a945befd9169af7c40328707dd86f4b04"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LT8900::setChannel </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>channel</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set the channel. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">channel</td><td>has significant 7 bits </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a52773d4d623382ab17312617d73c09e6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LT8900::setClock </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>clock</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sets the internal clock divider </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">clock</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a62229382691c2ea00acae3284c1f5d7d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LT8900::setCurrentControl </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>power</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>gain</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set power and gain </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">power</td><td>0-0xf </td></tr>
    <tr><td class="paramname">gain</td><td>0-0xf </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a3dbc395cb3253332c0e97d057af9c7d8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool LT8900::setDataRate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_l_t8900.html#a602698f020d6a88efe40f18e95075be3">DataRate</a>&#160;</td>
          <td class="paramname"><em>rate</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sets the data rate </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rate</td><td>the transmission/reception speed </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true when the data rate was succesfully changed. </dd></dl>

</div>
</div>
<a class="anchor" id="a2a5b1d04300c17e7f3bb7f881654a274"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LT8900::setSyncWord </td>
          <td>(</td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>syncWord</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set Syncword </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">syncWord</td><td>64 bits of sync word settings. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>setSyncwordLength </dd></dl>

</div>
</div>
<a class="anchor" id="aa816fa6a5f3280e05c5cdf390ffea0a9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LT8900::setSyncWordLength </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>length</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sets the length of the sync word used </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">length</td><td>11 = 64bits, 10 = 48 bits, 01 = 32 bits, 00 = 16 bits </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>Check the datasheet for which bits are actually used. </dd></dl>

</div>
</div>
<a class="anchor" id="a2d8568bbc3acdf8fe6e8f208558647d2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LT8900::sleep </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Put the <a class="el" href="class_l_t8900.html">LT8900</a> module to sleep mode. In contrast to POWER DOWN, this mode will keep the register values Any SPI call will awaken the module automatically </p>

</div>
</div>
<a class="anchor" id="a6152869b35b9bc89e75cd7b0556f49a9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LT8900::startListening </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Switch the module to RX mode </p>

</div>
</div>
<a class="anchor" id="a80f288ff48a05175de0c25021b9ed623"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LT8900::whatsUp </td>
          <td>(</td>
          <td class="paramtype">Stream &amp;&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Dumps debug information on the selected port </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stream</td><td>the output stream to use as output, eg. <code>whatsUp(&amp;Serial);</code> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="abcd27a849444a5854d78ae4242676d4b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t LT8900::writeRegister </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>reg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Writes to a register </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">reg</td><td>The register to write to </td></tr>
    <tr><td class="paramname">data</td><td>16bits of data, MSB first </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a601eb681ebcbe5bbcd378d4448beeca1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t LT8900::writeRegister2 </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>reg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>high</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>low</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Writes to a register, one byte at a time. This is a convenience function, because the <a class="el" href="class_l_t8900.html">LT8900</a> uses 16 bits registers with all 16 bits written at once. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">reg</td><td>The register to write to </td></tr>
    <tr><td class="paramname">high</td><td>bits 15..8 </td></tr>
    <tr><td class="paramname">low</td><td>bits 7..0 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_l_t8900_8h_source.html">LT8900.h</a></li>
<li>LT8900.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
